//
//  YXCollectionView.h
//  YXImageBrowserDemo
//
//  Created by guo peng huang on 2021/5/18.
//

#import <UIKit/UIKit.h>
#import "YXCollectionViewLayout.h"
NS_ASSUME_NONNULL_BEGIN

@interface YXCollectionView : UICollectionView


@property (nonatomic, strong, readonly) YXCollectionViewLayout *layout;

- (NSString *)reuseIdentifierForCellClass:(Class)cellClass;

- (nullable UICollectionViewCell *)centerCell;

- (void)scrollToPage:(NSInteger)page;

@end

NS_ASSUME_NONNULL_END
